package com.noahplat.person.pojo;


import lombok.Data;
import org.hibernate.validator.constraints.Length;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * 功能：体检报告实体类
 * name:宋彦磊
 * time:2021.02.28
 */

@Data
@Table(name = "tb_health_record")
public class HealthRecord implements Serializable {
    @Id
    @KeySql(useGeneratedKeys = true)
    private Long id;   //主键ID
    private Long pid;  //人员ID

    @Column(name = "physical_time")
    private Date ptime; //体检时间

    @NotNull(message = "体检机构不能为空")
    @Length(max = 50)
    @Column(name = "physical_organ")
    private String porgan;  //体检机构

    @NotNull(message = "文件不能为空")
    @Length(max = 1024)
    private String filepath;  //体检报告、化验单、检查单、影像片图片文件

    @NotNull(message = "参数不能为null")
    @Length(max = 1)
    private String del;//是否删除标识 N未删除 Y删除
}
